$OpenBSD: patch-configure_ac,v 1.4 2017/04/16 19:53:20 sthen Exp $
Disable PIE on ARM and HPPA
--- configure.ac.orig	Sat Feb 18 15:37:24 2012
+++ configure.ac	Sun Apr 16 20:52:19 2017
@@ -35,6 +35,10 @@ case "$target_os" in
 	use_pie=no
 	;;
     openbsd*)
+	case "$target" in
+	arm-*-openbsd*) use_pie=no;;
+	hppa-*-openbsd*) use_pie=no;;
+	esac
 	;;
     *)
 	AC_MSG_ERROR([Unsupported operating system])
@@ -42,7 +46,7 @@ case "$target_os" in
 esac
 
 # enable warnings/errors/security
-AX_CFLAGS_GCC_OPTION(-Wall -Werror, WCFLAGS)
+AX_CFLAGS_GCC_OPTION(-Wall, WCFLAGS)
 AX_CFLAGS_GCC_OPTION(-Wformat -Wformat-security, WCFLAGS)
 AX_CFLAGS_GCC_OPTION(-D_FORTIFY_SOURCE=2, WCFLAGS)
 AX_CFLAGS_GCC_OPTION(-fno-delete-null-pointer-checks, WCFLAGS)
